package com.threads;

import javax.swing.JTextPane;

import com.proceso.Proceso;

public class Hilos extends Thread {
	private Proceso p;
	private JTextPane log;
	
	public Hilos(Proceso p, JTextPane log, boolean sobreescribirCovers){
		this.p = p;
		this.p.setSobreescribirCovers(sobreescribirCovers);
		this.setLog(log);
	}
	public void run(){
		this.p.bajarCovers();
		//this.log.setText(p.getLog());
	}
	public void setLog(JTextPane log) {
		this.log = log;
	}
	public JTextPane getLog() {
		return log;
	}
}
